-- GENERATED SPELL FOR [Aqueous Lord] --


function spell0_22878(pUnit, Event) --@Crashing Wave,n/a--
pUnit:FullCastSpellOnTarget(40100,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22878', 569, 1)
end

function spell1_22878(pUnit, Event) --@Vile Slime,n/a--
pUnit:FullCastSpellOnTarget(40099,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22878', 24000, 1)
end

function Sorts_22878(pUnit, Event)
local choix_sorts_22878 = math.random(0, 1)
if choix_sorts_22878 == 0 then
pUnit:RegisterEvent('spell0_22878', 1, 1)
end
if choix_sorts_22878 == 1 then
pUnit:RegisterEvent('spell1_22878', 1, 1)
end
end

function mob22878_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22878', math.random(1500, 3000), 1)
end

function mob22878_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22878_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22878_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22878, 1, 'mob22878_Action')
RegisterUnitEvent(22878, 2, 'mob22878_Leave')
RegisterUnitEvent(22878, 3, 'mob22878_Kill')
RegisterUnitEvent(22878, 4, 'mob22878_Die')
